<?php
/*
*###########################################################################################################################*
#															    															#
#															    															#
#    **  ** ****** ** **  **  ****** ** ***   ** ***   ****** ** **  **  ** **  ** ** **  **    ****   ** **  **  ******    #
#    **  ** ****** ********** ****** *******  *******  ****** ********** ** **  ** **********  ******  ********** ******    #
#    **  ** **  ** **  **  ** **     ***   ** **    ** **     **  **  **    **  ** **  **  ** ***   ** **  **  ** **        #
#    ****** **  ** **  **  ** ****** **   *** **   *** ****** **  **  ** ** **  ** **  **  ** **       **  **  ** ******    #
#    ****** **  ** **  **  ** ****** *******  *******  ****** **  **  ** ** **  ** **  **  ** **       **  **  ** ******    #
#    **  ** **  ** **  **  ** **     *****    ******   **     **  **  ** ** **  ** **  **  ** ***   ** **  **  **     **    #
#    **  ** ****** **  **  ** ****** **       **  ***  ****** **  **  ** ** ****** **  **  **  ******  **  **  ** ******    #
#    **  ** ****** **  **  ** ****** **       **   *** ****** **  **  ** **  ** ** **  **  **   ****   **  **  ** ******    #
#															    															#
#															    															#
#															    															#
#    2010 - 2011 © HomePremiumCMS made by HomePemium as PremiumEye & Security by HomePremium and Merijnz		    		#
#															    															#
#    Powered by PhoenixPHP 3.7.1 (build 138000)										    									#
#															    															#
#															    															#
#															    															#
*###########################################################################################################################*
*/

define('USERNAME_REQUIRED', TRUE);
define('ACCOUNT_REQUIRED', TRUE);
include('global.php');
define("THIS_SCRIPT", 'home');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

	<html xmlns="http://www.w3.org/1999/xhtml"> 
    
		<head>
        
			<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            
			<title>
			
				<?php 
				
				if(isset($_GET['u']) && $_GET['u']){ 
				
					$username = $core->EscapeString($_GET['u']); 
					
				}else{ 
				
					$username = $lang['profile_settings']; 
					
				}if(isset($_GET['u']) && $_GET['u']){ 
				
					echo $core->EscapeString($users->UserInfo($username, 'username')).' - Home'; 
					
				}else{ 
				
					echo $lang['profile_settings'].' - Home'; 
					
				} 
				
				?>
                
            </title>
            
            <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
            
		</head> 

<?php $username = $core->EscapeString($_SESSION['username']); include("system/header_home_page.php"); ?>

<div class="mainBox"> 

<?php include("system/homenav_homepage.php"); ?>

	<body id="mainbox">

		<div id="profiel_options" style="padding-top: 10px;">

   	 		<?php if(isset($_GET["instellingen"]) && $_GET["instellingen"] == "gepost"){?>

				<div class="xxxl_boxHeader_grey">

					<div class="titel">

						<?php echo $lang['profile_posted_title']; ?>

					</div>

				</div>

				<div class="contentBox" style="width:928px;">

					<div class="boxContent">

						<div style="background-color: #4EC400; border: 1px solid #4EC400; border-radius: 4px; padding: 10px 10px 10px 10px; color: #276300;">

							<?php echo $lang['profile_posted_text']; if(isset($_GET['u'])){$username = $core->EscapeString($_GET['u']);}?>

							<meta http-equiv="refresh" content="2;URL=home.php?u=<?php echo $core->EscapeString($users->UserInfo($username, 'username')); ?>" />

						</div>

					</div>

				</div>

				<div class="xxxl_boxBottom" style="margin-bottom: 10px;"></div>

			</div>	

			<?php }if(isset($_GET["instellingen"]) && $_GET["instellingen"] == "opgeslagen"){if(isset($_GET['u'])){$username = $core->EscapeString($_SESSION['username']);}?>

				<div class="xxxl_boxHeader_grey">

					<div class="titel">

						<?php echo $lang['profile_saved_title']; ?>

					</div>

				</div>

				<div class="contentBox" style="width:928px;">

					<div class="boxContent">

						<div style="background-color: #4EC400; border: 1px solid #4EC400; border-radius: 4px; padding: 10px 10px 10px 10px; color: #276300;">

							<?php echo $lang['profile_saved_text']; ?>

							<meta http-equiv="refresh" content="2;URL=home.php?instellingen=items" />

						</div>

					</div>

				</div>

				<div class="xxxl_boxBottom" style="margin-bottom: 10px;"></div>

			</div>

			<?php }if(isset($_GET["instellingen"]) && $_GET["instellingen"] == "afgeschermd"){?>

				<div class="xxxl_boxHeader_grey">

					<div class="titel">

						Succesvol afgeschermd!

					</div>

				</div>

				<div class="contentBox" style="width:928px;">

					<div class="boxContent">

						<div style="background-color: #4EC400; border: 1px solid #4EC400; border-radius: 4px; padding: 10px 10px 10px 10px; color: #276300;">

							<?php echo $lang['good_shielding']; ?>

							<meta http-equiv="refresh" content="2;URL=me.php" />

						</div>

					</div>

				</div>

				<div class="xxxl_boxBottom" style="margin-bottom: 10px;"></div>

			</div>
            
			<?php }if(isset($_GET["instellingen"]) && $_GET["instellingen"] == "items"){?>
            
				<div class="xxxl_boxHeader_grey">
                
					<div class="titel">
                    
						<div style="float: left; text-decoration: underline; cursor:pointer;" onClick="location.href='home.php?u=<?php echo $core->EscapeString($_SESSION['username']); ?>'">
                        
							&laquo; <?php echo $lang['profile_settings_done']; ?>
                            
						</div>
                        
						<?php echo $lang['profile_settings']; ?>
                        
					</div>
                    
				</div>
                
				<div class="contentBox" style="width:928px;">
                
					<div class="boxContent">
                    
						<table width="100%">
                        
							<img align="right" src="Public/Styles/Default/Images/th_frank_02.gif" />
                            
							<a href="home.php?instellingen=tekst"><div id="profiel_button_e"><div style="padding-top: 10px;"><?php echo $lang['profile_settings_text']; ?></div></div></a>
                            
							<a href="home.php?instellingen=achtergrond"><div id="profiel_button"><div style="padding-top: 20px;"><?php echo $lang['profile_settings_background']; ?></div></div></a>
                            
							<a href="home.php?instellingen=profiel_stijl"><div id="profiel_button"><div style="padding-top: 20px;"><?php echo $lang['profile_settings_style']; ?></div></div></a>
                            
							<a href="home.php?instellingen=profiel_tekst"><div id="profiel_button"><div style="padding-top: 20px;"><?php echo $lang['profile_settings_profile_text']; ?></div></div></a>
                            
							<a href="home.php?instellingen=profiel_boxcolumn"><div id="profiel_button"><div style="padding-top: 20px;"><?php echo $lang['profile_settings_profile_boxes']; ?></div></div></a>
                            
							<a href="home.php?instellingen=twitter"><div id="profiel_button"><div style="padding-top: 20px;"><?php echo $lang['profile_settings_twitter']; ?></div></div></a>
                            
						</table>
                        
					</div>
                    
				</div>
                
				<div class="xxxl_boxBottom" style="margin-bottom: 10px;"></div>
                
			</div>
            
			<?php }if(isset($_GET["instellingen"]) && $_GET["instellingen"] == "tekst"){?>
            
				<div class="xxxl_boxHeader_grey">
                
					<div class="titel">
                    
						<div style="float: left; text-decoration: underline; cursor:pointer;" onClick="location.href='home.php?instellingen=items'">
                        
							&laquo; <?php echo $lang['profile_settings_back']; ?>
                            
						</div>
                        
						<?php echo $lang['profile_settings_text2']; ?>
                        
					</div>
                    
				</div>
                
				<div class="contentBox">
                
					<div class="boxContent" style="width:928px;">
                    
						<form method="post" action="functions/action_profiel_tekst_color.php">
                        
							<table width="90%">
                            
								<tr>
                                
									<td>
                                    
										<b><?php echo $lang['profile_settings_text_color']; ?></b>
                                        
									</td>
                                    
									<td>
                                    
										<input class="color {valueElement:'myValue'}" style="width: 20px; height: 15px; border: 1px solid #5E5E5E; border-radius: 2px;" onmouseover="tooltip.show('Klik hier om een kleur te kiezen');" onmouseout="tooltip.hide();">
                                        
									</td>
                                    
									<td>
                                    
										<input type="text" name="profiel_tekst_color" id="myValue" value="<?php echo $core->EscapeString($users->UserInfo($username, 'profiel_tekst_color')); ?>" onmouseover="tooltip.show('Klik op het gekleurde blokje hiernaast om jou kleur te kiezen');" onmouseout="tooltip.hide();">
                                        
									</td>
                                    
								</tr>
                                
								<tr>
                                
									<td>
                                    
                                    	<b><?php echo $lang['profile_settings_text_style']; ?></b>
                                        
                                    </td>
                                    
									<td></td>
                                    
									<td>
                                    
										<select name="profiel_tekst_stijl">
                                        
											<option name="profiel_tekst_stijl" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_tekst_stijl')) == 'arial'){ echo 'selected=selected'; }?> value="arial">
                                            
												Arial
                                                
											</option>
                                            
											<option name="profiel_tekst_stijl" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_tekst_stijl')) == 'verdana'){ echo 'selected=selected'; }?> value="verdana">
                                            
												Verdana
                                                
											</option>
                                            
											<option name="profiel_tekst_stijl" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_tekst_stijl')) == 'tahoma'){ echo 'selected=selected'; }?> value="tahoma">
                                            
												Tahoma
                                                
											</option>
                                            
											<option name="profiel_tekst_stijl" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_tekst_stijl')) == 'Calibri'){ echo 'selected=selected'; }?> value="calibri">
                                            
												Calibri
                                                
											</option>
                                            
											<option name="profiel_tekst_stijl" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_tekst_stijl')) == 'microsoft sans serif'){ echo 'selected=selected'; }?> value="microsoft sans serif">
                                            
												Microsoft Sans Serif
                                                
											</option>
                                            
										</select>
                                        
									</td>
                                    
								</tr>
                                
								<tr>
                                
									<td>
                                    
										<b><?php echo $lang['profile_settings_text_size']; ?></b>
                                        
									</td>
                                    
									<td></td>
                                    
									<td>
                                    
										<select name="profiel_tekst_groote">
                                        
											<option name="profiel_tekst_groote" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_tekst_groote')) == '7'){ echo 'selected=selected'; }?> value="7">
                                            
												7 px
                                                
											</option>
                                            
											<option name="profiel_tekst_groote" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_tekst_groote')) == '8'){ echo 'selected=selected'; }?> value="8">
                                            
												8 px
                                                
											</option>
                                            
											<option name="profiel_tekst_groote" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_tekst_groote')) == '9'){ echo 'selected=selected'; }?> value="9">
                                            
												9 px
                                                
											</option>
                                            
											<option name="profiel_tekst_groote" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_tekst_groote')) == '10'){ echo 'selected=selected'; }?> value="10">
                                            
												10 px
                                                
											</option>
                                            
											<option name="profiel_tekst_groote" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_tekst_groote')) == '11'){ echo 'selected=selected'; }?> value="11">
                                            
												11 px
                                                
											</option>
                                            
											<option name="profiel_tekst_groote" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_tekst_groote')) == '12'){ echo 'selected=selected'; }?> value="12">
                                            
												12 px
                                                
											</option>
                                            
											<option name="profiel_tekst_groote" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_tekst_groote')) == '13'){ echo 'selected=selected'; }?> value="13">
                                            
												13 px
                                                
											</option>
                                            
											<option name="profiel_tekst_groote" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_tekst_groote')) == '14'){ echo 'selected=selected'; }?> value="14">
                                            
												14 px
                                                
											</option>
                                            
										</select>
                                        
									</td>
                                    
								</tr>
                                
								<tr>
                                
									<td>
                                    
										<input type="submit" value="<?php echo $lang['submit']; ?>" />
                                        
									</td>
                                    
								</tr>
                                
							</table>
                            
						</form>
                        
					</div>
                    
				</div>
                
				<div class="xxxl_boxBottom" style="margin-bottom: 10px;"></div>
                
			</div>
            
			<?php }if(isset($_GET["instellingen"]) && $_GET["instellingen"] == "achtergrond"){?>
            
				<div class="xxxl_boxHeader_grey">
                
					<div class="titel">
                    
						<div style="float: left; text-decoration: underline; cursor:pointer;" onClick="location.href='home.php?instellingen=items'">
                        
							&laquo; <?php echo $lang['profile_settings_back']; ?>
                            
						</div>
                        
						<?php echo $lang['profile_settings_background']; ?>
                        
					</div>
                    
				</div>
                
				<div class="contentBox" style="width:928px;">
                
					<div class="boxContent">
                    
						<form method="post" action="functions/action_profiel_achtergrond.php">
                        
							<table width="90%">
                            
								<tr class="StaffBox" id="odd">
                                
									<td>
                                    
										<b><?php echo $lang['profile_settings_background_images']; ?></b>
                                        
									</td>
                                    
									<td>
                                    
										<input type="image" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_achtergrond')) == 'bg.png'){ echo 'style="opacity:0.4;cursor:default;"'; }?> src="Public/Styles/Default/Images/bg_liddles/liddle_bg.png" name="profiel_achtergrond" value="bg.png" />

										<input type="image" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_achtergrond')) == 'bg_hc.png'){ echo 'style="opacity:0.4;cursor:default;"'; }?> src="Public/Styles/Default/Images/bg_liddles/liddle_bg_hc.png" name="profiel_achtergrond" value="bg_hc.png" />

										<input type="image" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_achtergrond')) == 'bg_snow.png'){ echo 'style="opacity:0.4;cursor:default;"'; }?> src="Public/Styles/Default/Images/bg_liddles/liddle_bg_snow.png" name="profiel_achtergrond" value="bg_snow.png" />

										<input type="image" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_achtergrond')) == 'bg_bos.png'){ echo 'style="opacity:0.4;cursor:default;"'; }?> src="Public/Styles/Default/Images/bg_liddles/liddle_bg_bos.png" name="profiel_achtergrond" value="bg_bos.png" />

										<input type="image" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_achtergrond')) == 'bg_bottom_bos.png'){ echo 'style="opacity:0.4;cursor:default;"'; }?> src="Public/Styles/Default/Images/bg_liddles/liddle_bg_bottom_bos.png" name="profiel_achtergrond" value="bg_bottom_bos.png" />

										<input type="image" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_achtergrond')) == 'bg_presents.png'){ echo 'style="opacity:0.4;cursor:default;"'; }?> src="Public/Styles/Default/Images/bg_liddles/liddle_bg_presents.png" name="profiel_achtergrond" value="bg_presents.png" />

										<input type="image" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_achtergrond')) == 'bg_roses.png'){ echo 'style="opacity:0.4;cursor:default;"'; }?> src="Public/Styles/Default/Images/bg_liddles/liddle_bg_roses.png" name="profiel_achtergrond" value="bg_roses.png" />

										<input type="image" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_achtergrond')) == 'bg_skull.png'){ echo 'style="opacity:0.4;cursor:default;"'; }?> src="Public/Styles/Default/Images/bg_liddles/liddle_bg_skull.png" name="profiel_achtergrond" value="bg_skull.png" />

										<input type="image" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_achtergrond')) == 'bg_love.png'){ echo 'style="opacity:0.4;cursor:default;"'; }?> src="Public/Styles/Default/Images/bg_liddles/liddle_bg_love.png" name="profiel_achtergrond" value="bg_love.png" />

										<input type="image" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_achtergrond')) == 'bg_wood.png'){ echo 'style="opacity:0.4;cursor:default;"'; }?> src="Public/Styles/Default/Images/bg_liddles/liddle_bg_wood.png" name="profiel_achtergrond" value="bg_wood.png" />

										<input type="image" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_achtergrond')) == 'bg_wood2.png'){ echo 'style="opacity:0.4;cursor:default;"'; }?> src="Public/Styles/Default/Images/bg_liddles/liddle_bg_wood2.png" name="profiel_achtergrond" value="bg_wood2.png" />

										<input type="image" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_achtergrond')) == 'bg_clouds.png'){ echo 'style="opacity:0.4;cursor:default;"'; }?> src="Public/Styles/Default/Images/bg_liddles/liddle_bg_clouds.png" name="profiel_achtergrond" value="bg_clouds.png" />

										<input type="image" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_achtergrond')) == 'bg_grass.png'){ echo 'style="opacity:0.4;cursor:default;"'; }?> src="Public/Styles/Default/Images/bg_liddles/liddle_bg_grass.png" name="profiel_achtergrond" value="bg_grass.png" />

										<input type="image" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_achtergrond')) == 'bg_stone.png'){ echo 'style="opacity:0.4;cursor:default;"'; }?> src="Public/Styles/Default/Images/bg_liddles/liddle_bg_stone.png" name="profiel_achtergrond" value="bg_stone.png" />

										<input type="image" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_achtergrond')) == 'bg_makeover.png'){ echo 'style="opacity:0.4;cursor:default;"'; }?> src="Public/Styles/Default/Images/bg_liddles/liddle_bg_makeover.png" name="profiel_achtergrond" value="bg_makeover.png" />
                                        
									</td>
                                    
								</tr>
                                
							</table>
                            
						</form>
                        
					</div>
                    
				</div>
                
				<div class="xxxl_boxBottom" style="margin-bottom: 10px;"></div>
                
			</div>
            
			<?php }if(isset($_GET["instellingen"]) && $_GET["instellingen"] == "profiel_stijl"){?>
            
				<div class="xxxl_boxHeader_grey">
                
					<div class="titel">
                    
						<div style="float: left; text-decoration: underline; cursor:pointer;" onClick="location.href='home.php?instellingen=items'">
                        
							&laquo; <?php echo $lang['profile_settings_back']; ?>
                            
						</div>
                        
						<?php echo $lang['profile_settings_style']; ?>
                        
					</div>
                    
				</div>
                
				<div class="contentBox" style="width:928px;">
                
					<div class="boxContent">
                    
						<form method="post" action="functions/action_profiel_stijl.php">
                        
							<table width="100%">
                            
								<tr class="StaffBox" id="odd">
                                
									<td>
                                    
										<b><?php echo $lang['profile_settings_style_boxes']; ?></b>
                                        
									</td>
                                    
									<td>
                                    
										<select name="profiel_stijl">
                                        
											<option name="profiel_stijl" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_stijl')) == 'home'){ echo 'selected=selected'; }?> value="home">
                                            
												Normaal
                                                
											</option>
                                            
											<option name="profiel_stijl" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_stijl')) == 'stripes'){ echo 'selected=selected'; }?> value="stripes">
                                            
												Strepen
                                                
											</option>
                                            
											<option name="profiel_stijl" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_stijl')) == 'love'){ echo 'selected=selected'; }?> value="love">
                                            
												Liefde
                                                
											</option>
                                            
											<option name="profiel_stijl" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_stijl')) == 'tropisch'){ echo 'selected=selected'; }?> value="tropisch">
                                            
												Tropisch
                                                
											</option>
                                            
										</select>
                                        
									</td>
                                    
								</tr>
                                
								<tr>
                                
									<td>
                                    
										<input type="submit" value="<?php echo $lang['submit']; ?>" />
                                        
									</td>
                                    
								</tr>
                                
							</table>
                            
						</form>
                        
					</div>
                    
				</div>
                
				<div class="xxxl_boxBottom" style="margin-bottom: 10px;"></div>
                
			</div>
            
			<?php }if(isset($_GET["instellingen"]) && $_GET["instellingen"] == "profiel_tekst"){?>
            
				<div class="xxxl_boxHeader_grey">
                
					<div class="titel">
                    
						<div style="float: left; text-decoration: underline; cursor:pointer;" onClick="location.href='home.php?instellingen=items'">
                        
   				 			&laquo; <?php echo $lang['profile_settings_back']; ?>
                            
						</div>
                        
						<?php echo $lang['profile_settings_profile_text']; ?>
                        
					</div>
                    
				</div>
                
				<div class="contentBox" style="width:928px;">
                
					<div class="boxContent">
                    
						<form method="post" action="functions/action_profiel_tekst.php">
                        
							<style type="text/css">
								.progress{
									width: 1px;
									height: 14px;
										color: white;
										font-size: 12px;
  									overflow: hidden;
										background-color: navy;
										padding-left: 5px;
									}
							</style>
                            
							<script type="text/JavaScript">
								function textCounter(field,counter,maxlimit,linecounter) {
									// text width//
									var fieldWidth =  parseInt(field.offsetWidth);
									var charcnt = field.value.length;

									// trim the extra text
									if (charcnt > maxlimit) { 
										field.value = field.value.substring(0, maxlimit);
									}

									else { 
									// progress bar percentage
									var percentage = parseInt(100 - (( maxlimit - charcnt) * 100)/maxlimit) ;
									document.getElementById(counter).style.width =  parseInt((fieldWidth*percentage)/100)+"px";
									document.getElementById(counter).innerHTML="Al "+percentage+"% vol"
									// color correction on style from CCFFF -> CC0000
									setcolor(document.getElementById(counter),percentage,"background-color");
									}
								}

								function setcolor(obj,percentage,prop){
									obj.style[prop] = "rgb(80%,"+(100-percentage)+"%,"+(100-percentage)+"%)";
								}
							</script>
                            
							<b><?php echo $lang['profile_settings_profile_text_title']; ?></b>
                            
							&nbsp;
                            
							<i>(<?php echo $lang['profile_settings_profile_text_title_max']; ?>)</i>
                            
							<input type="text" width="100%" name="profiel_tekst_titel" id="maxcharfield" onKeyDown="textCounter(this,'progressbar1',60)" onKeyUp="textCounter(this,'progressbar1',60)" onFocus="textCounter(this,'progressbar1',60)" value="<?php echo $core->EscapeString($users->UserInfo($username, 'profiel_tekst_titel')); ?>">
                            
							<br />
                            
							<div id="progressbar1" class="progress"></div>
                            
							<script>
								textCounter(document.getElementById("maxcharfield"),"progressbar1",60)
                            </script>
                            
                            <br />
                            
							<br />
                            
							<textarea id="editor" cols="80" name="profiel_tekst" style="width: 100%;height: 300px;">
                            
								<?php echo $users->UserInfo($username, 'profiel_tekst'); ?>
                                
							</textarea>
                            
							<script type="text/javascript">
								CKEDITOR.replace( 'editor',
									{
										contentsCss : 'Public/Styles/Default/CSS/main.css',
										enterMode : CKEDITOR.ENTER_BR,
										language : '<?php echo $language; ?>'
									});
							</script>
                            
							<input type="submit" value="<?php echo $lang['submit']; ?>" />
                            
						</form>
                        
					</div>
                    
				</div>
                
				<div class="xxxl_boxBottom" style="margin-bottom: 10px;"></div>
                
			</div>
            
			<?php }if(isset($_GET["instellingen"]) && $_GET["instellingen"] == "profiel_boxcolumn"){?>
            
				<div class="xxxl_boxHeader_grey">
                
					<div class="titel">
                    
   	 					<div style="float: left; text-decoration: underline; cursor:pointer;" onClick="location.href='home.php?instellingen=items'">
                        
							&laquo; <?php echo $lang['profile_settings_back']; ?>
                            
						</div>
                        
					<?php echo $lang['profile_settings_profile_boxes']; ?>
                    
					</div>
                    
				</div>
                
				<div class="contentBox" style="width:928px;">
                
					<div class="boxContent">
                    
						<form method="post" action="functions/action_profiel_boxcolumn.php">
                        
							<table width="90%">
                            
								<tr class="StaffBox" id="odd">
                                
									<td>
                                    
										<b><?php echo $lang['profile_settings_profile_boxes_switch']; ?></b>
                                        
									</td>
                                    
									<td>
                                    
                                       	<select name="profiel_boxcolumn">
                                        
                                       		<option name="profiel_boxcolumn" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_boxcolumn')) == 'right'){ echo 'selected=selected'; }?> value="right">
                                            
                                       			<?php echo $lang['profile_settings_yes']; ?>
                                                
                                       		</option>
                                            
                                       		<option name="profiel_boxcolumn" <?php if($core->EscapeString($users->UserInfo($username, 'profiel_boxcolumn')) == 'left'){ echo 'selected=selected'; }?> value="left">
                                            
                                       			<?php echo $lang['profile_settings_no']; ?>
                                                
                                       		</option>
                                            
                                       	</select>
                                        
									</td>

									<td>
                                    
										<input type="submit" value="<?php echo $lang['submit']; ?>" />
                                        
									</td>
                                    
								</tr>
                                
							</table>
                            
						</form>
                        
					</div>
                    
				</div>
                
				<div class="xxxl_boxBottom" style="margin-bottom: 10px;"></div>
                
			</div>
            
			<?php }if(isset($_GET["instellingen"]) && $_GET["instellingen"] == "twitter"){?>
            
				<div class="xxxl_boxHeader_grey">
                
					<div class="titel">
                    
						<div style="float: left; text-decoration: underline; cursor:pointer;" onClick="location.href='home.php?instellingen=items'">
                        
							&laquo; <?php echo $lang['profile_settings_back']; ?>
                            
						</div>
                        
						<?php echo $lang['profile_settings_twitter']; ?>
                        
					</div>
                    
				</div>
                
				<div class="contentBox" style="width:928px;">
                
					<div class="boxContent">
                    
						<form method="post" action="functions/action_twitter.php">
                        
							<table width="90%">
                            
                            	<tr>
                                
                                <td>
                                    
										<b><?php echo $lang['profile_settings_twitter_second_title']; ?></b>
                                        
								</td>
                                    
                                </tr>
                                
                                <tr>	
                                
                                	<td>
                                    
                                    	<br />
                                        
                                        <br />
                                    
                                    </td>
                                
                                </tr>
                            
								<tr class="StaffBox" id="odd">
                                
									<td>
                                    
										<b><?php echo $lang['profile_settings_twitter_title']; ?></b>
                                        
									</td>
                                    
									<td>
                                    
										<input type="text" name="twitter" value="<?php echo $core->EscapeString($users->UserInfo($username, 'twitter')); ?>" />
                                        
									</td>
                                    
								</tr>
                                
								<tr>
                                
									<td>
                                    
										<input type="submit" value="<?php echo $lang['submit']; ?>" />
                                        
									</td>
                                    
								</tr>
                                
							</table>
                            
						</form>
                        
					</div>
                    
				</div>
                
				<div class="xxxl_boxBottom" style="margin-bottom: 10px;"></div>
                
			</div>

			<?php }$selectedAfschermen = $core->EscapeString($users->UserInfo($username, 'profiel_admin_afschermen')); $selectedAfschermen2 = $core->EscapeString($users->UserInfo($username, 'profiel_zichtbaar'));
			
				if($selectedAfschermen == "yes"){
					
					echo '
					
						<div style="margin-top: 0px;" class="xxxl_boxHeader_grey">
						
							<div class="titel">
							
								Profiel afgeschermd!
								
							</div>
							
						</div>
						
						<div class="contentBox" style="width: 928px;">
						
							<div class="boxContent">
							
								<div style="background-color: #FF1616; border: 1px solid #FF1616; border-radius: 4px; padding: 10px 10px 10px 10px; color: #990000;">
								
									Dit profiel is tegen de regels. Daarom is deze afgeschermd door een administrator.
									
									<meta http-equiv="refresh" content="5;URL=me.php" />
									
								</div>
								
							</div>
							
						</div>
						
						<div class="xxxl_boxBottom" style="margin-bottom: 10px;"></div>
						
					</div>
					
						';
						
				}elseif($selectedAfschermen2 == "nee" && isset($_GET["u"]) && $_GET["u"]){
					
					echo '
					
						<div style="margin-top: 0px;" class="xxxl_boxHeader_grey">
						
							<div class="titel">
							
								Profiel afgeschermd!
								
							</div>
							
						</div>
						
						<div class="contentBox" style="width: 928px;">
						
							<div class="boxContent">
							
								<div style="background-color: #FF1616; border: 1px solid #FF1616; border-radius: 4px; padding: 10px 10px 10px 10px; color: #990000;">
								
									De gebruiker heeft zijn eigen profiel afgeschermd.
									
									<meta http-equiv="refresh" content="5;URL=me.php" />
									
								</div>
								
							</div>
							
						</div>
						
						<div class="xxxl_boxBottom" style="margin-bottom: 10px;"></div>
						
					</div>
					
						';
						
				}else{
					
					echo '<div>';

				if($users->NameTaken($username)){?>
                
					<div class="home_top">
                    
						<?php if(isset($_GET["u"]) && $_GET["u"] == "".$core->EscapeString($_SESSION['username'])."") { ?>
                        
							<div style="padding-top: 5px;padding-left:5px;float:left;">
                            
								<a class="new-button dark-button edit-icon" href="home.php?instellingen=items"><b><span></span><?php echo $lang['edit']; ?></b><i></i></a>
                                
							</div>
                            
						<?php } ?>
                        
						<div style="float: left;margin-left: 10px;margin-top: 8px;" id="username_title">
                        
							<?php echo $core->EscapeString($users->UserInfo($username, 'username')); ?>
                            
						</div>
                        
                        <div style="float: right;">
                            <?php

								$username = $core->EscapeString($_SESSION['username']);   
	
								if(!$core->EscapeString($users->UserPermission('cms_profile_shielding', $username)) == 0){
	
								if(isset($_GET['u']))
								{
									$username = $core->EscapeString($_GET['u']);
								}
	
								if($core->EscapeString($users->UserInfo($username, 'profiel_admin_afschermen')) == "no"){

									echo '
									
										<a class="new-button red-button cancel-icon homepage" href="functions/action_profiel_afschermen.php?value=yes&user='.$core->EscapeString($users->UserInfo($username, 'username')).'">				
											<b><span></span><u>'.$lang['shielding'].'</u></b><i></i>
										</a>
										
									';
								}
								}
								
								if(isset($_GET['u']) && $core->EscapeString($_GET['u']) == ''){
									
									$username = $core->EscapeString($_GET['u']);
									
								}
								
								if(isset($_GET['u']) && $core->EscapeString($_GET['u']) == NULL){
									
									$username = $core->EscapeString($_SESSION['username']);
									
								}
                            ?>
                            
						</div>
                        
					</div> 
                    
					<style type="text/css">
					#change_color {
						color: <?php echo $core->EscapeString($users->UserInfo($username, 'profiel_tekst_color')); ?>;
					}

					.column .boxContent {
						font-family: <?php echo $core->EscapeString($users->UserInfo($username, 'profiel_tekst_stijl')); ?>;
						font-size: <?php echo $core->EscapeString($users->UserInfo($username, 'profiel_tekst_groote')); ?>px;
					}
			
					.column .boxContent2 {
						font-family: <?php echo $core->EscapeString($users->UserInfo($username, 'profiel_tekst_stijl')); ?>;
						font-size: <?php echo $core->EscapeString($users->UserInfo($username, 'profiel_tekst_groote')); ?>px;
					}
			
					div.l_boxHeader_blue {
						width: 450px;
						height: 34px;
						background-image: url(Public/Styles/Default/Images/toppen/<?php echo $core->EscapeString($users->UserInfo($username, 'profiel_stijl')); ?>/top_blue.png);
						text-indent:10px;
						font-weight:bolder;
					}

					div.l_boxHeader_orange {
						width: 450px;
						height: 34px;
						background-image: url(Public/Styles/Default/Images/toppen/<?php echo $core->EscapeString($users->UserInfo($username, 'profiel_stijl')); ?>/top_orange.png);
						text-indent:10px;
						font-weight:bolder;
					}

					div.l_boxBottom {
						width: 450px;
						height: 6px;
						background-image: url(Public/Styles/Default/Images/toppen/<?php echo $core->EscapeString($users->UserInfo($username, 'profiel_stijl')); ?>/bottom.png);
					}

					div.m_boxHeader_green {
						width: 300px;
						height: 34px;
						background-image: url(Public/Styles/Default/Images/toppen/<?php echo $core->EscapeString($users->UserInfo($username, 'profiel_stijl')); ?>/top_green.png);
						text-indent:10px;
						font-weight:bolder;
					}

					div.m_boxHeader_lightblue {
						width: 300px;
						height: 34px;
						background-image: url(Public/Styles/Default/Images/toppen/<?php echo $core->EscapeString($users->UserInfo($username, 'profiel_stijl')); ?>/top_lightblue.png);
						text-indent:10px;
						font-weight:bolder;
						margin-top: 10px;
					}

					div.m_boxBottom {
						width:300px;
						height: 6px;
						background-image: url(Public/Styles/Default/Images/toppen/<?php echo $core->EscapeString($users->UserInfo($username, 'profiel_stijl')); ?>/m_bottom.png);
					}

					div.TagButton {
						width: 12px;
						height: 9px;
						background-image:url(Public/Styles/Default/Images/icons/tag_button_delete.gif);
						float: left;
					}

					div.TagButton:hover {
						background-image:url(Public/Styles/Default/Images/icons/tag_button_delete_hi.gif);
					}

					div.GuestbookButton {
						width: 16px;
						height: 16px;
						background-image:url(Public/Styles/Default/Images/icons/post.png);
						float: right;
						margin-top: -18px;
						margin-right: 10px;
						cursor: pointer;
					}

					p {
						margin: 0;
						padding: 0;
					}

					#midstyle {
						background-image: url(Public/Styles/Default/Images/backgrounds/<?php echo $core->EscapeString($users->UserInfo($username, 'profiel_achtergrond')); ?>);
						width: 928px;
						height: 1360px;
						margin-bottom: 10px;
						border-left: 1px solid #B5B5AF;
						border-right: 1px solid #B5B5AF;
					}
					
					#column1 {
						<?php if($core->EscapeString($users->UserInfo($username, 'profiel_boxcolumn')) == "right") {?>
							float: right; 
							margin-right: -10px;
						<?php }elseif($core->EscapeString($users->UserInfo($username, 'profiel_boxcolumn')) == "left") {?>
							float: left;
						<?php }?>
					}
					
					.twtr-timeline {
						z-index: 0;
					}
					</style>
                    
					<div class="mid" id="midstyle" style="max-height:1360px;overflow:scroll;overflow-y:scroll;overflow-x:hidden;">
                    
						<div style="width: 762px;padding-top: 70px;margin:auto;">
                        
							<div class="xxl_boxHeader_grey">
                            
								<div class="titel">
                                
									<?php echo $core->EscapeString($users->UserInfo($username, 'profiel_tekst_titel')); ?>
                                    
									<?php if(isset($_GET["from"]) && $_GET["from"] == "own") { ?>
                                    
										<a href="?instellingen=profiel_tekst"></a>
                                        
									<?php } ?>
                                    
								</div>
                                
							</div>
                            
							<div class="contentBox">
                            
								<div class="boxContent">
                                
									<div style="max-height:350px;overflow:scroll;overflow-y:scroll;overflow-x:hidden;">
                                    
										<?php echo html_entity_decode(stripslashes(trim(htmlspecialchars($users->UserInfo($username, 'profiel_tekst'))))); ?>
                                        
									</div>
                                    
								</div>
                                
							</div>
                            
    						<div class="xxl_boxBottom"></div>
                            
							<div class="column" id="column1">
                            
								<div class="l_boxHeader_blue">
                                
									<div class="titel">
                                    
										<?php echo $core->EscapeString($users->UserInfo($username, 'username')); ?>
                                        
									</div>
                                    
								</div>
                                
								<div class="contentBox">
                                
									<div class="boxContent" id="change_color">
                                    
										<table width="100%">
                                        
											<div style="background-color: #F4F4F4; border: 1px solid #F4F4F4; border-radius: 5px; width: 75px; padding: 27px 10px 27px 10px; float: left;">	
                                            
												<div class="OnlineStatus" style="padding-left: 8px;">
                                                
													<?php if($core->EscapeString($users->UserInfo($username, 'online')) == 1) {?><div class="Online"></div><?php }else{ ?><div class="Offline"></div><?php } ?>
                                                    
												</div>
                                                
												<img src="http://www.habbo.com/habbo-imaging/avatarimage?figure=<?php echo $users->UserInfo($username, 'look'); ?>&action=wav" alt="<?php echo $users->UserInfo($username, 'username'); ?>" />
                                                
											</div>
                                            
											<div class="UsersName" style="background-color: #F4F4F4; border: 1px solid #F4F4F4; border-radius: 5px; padding: 10px 10px 10px 10px; float: left; margin-left: 10px; width: 138px;">
                                            
												<b><?php echo $lang['me_user_info_name']; ?>:</b>
                                                
												<br>
                                                
												<?php echo $core->EscapeString($users->UserInfo($username, 'username')); ?>
                                                
											</div>
                                            
											<div class="UsersLastLogin" style="background-color: #F4F4F4; border: 1px solid #F4F4F4; border-radius: 5px; padding: 10px 10px 10px 10px; float: left; margin-left: 10px; width: 138px;">
                                            
												<b><?php echo $lang['me_user_info_last_online']; ?>:</b>
                                                
												<br>
                                                
												<?php echo @date("d-m-Y", $core->EscapeString($users->UserInfo($username, 'last_online'))); ?> <?php echo $lang['me_user_info_last_online_on']; ?> <?php echo @date("H:i",$core->EscapeString($users->UserInfo($username, 'last_online'))); ?>
                                                
											</div>
                                            
											<div class="UsersMotto" style="background-color: #F4F4F4; border: 1px solid #F4F4F4; border-radius: 5px; padding: 10px 10px 10px 10px; float: left; margin-left: 10px; margin-top: 10px; width: 308px;">
                                            
												<b><?php echo $lang['me_user_info_motto']; ?>:</b>
                                                
												<br>
                                                
												<?php echo html_entity_decode($core->EscapeString($users->UserInfo($username, 'motto'))); ?>
                                                
											</div>
                                            
											<div class="UsersCreated" style="background-color: #F4F4F4; border: 1px solid #F4F4F4; border-radius: 5px; padding: 10px 10px 10px 10px; float: left; margin-left: 10px; margin-top: 10px; width: 138px;">
                                            
												<b><?php echo $lang['posted_date']; ?>:</b>
                                                
												<br>
                                                
												<?php echo @date("d-m-Y", $core->EscapeString($users->UserInfo($username, 'account_created'))); ?> <?php echo $lang['me_user_info_last_online_on']; ?> <?php echo @date("H:i", $core->EscapeString($users->UserInfo($username, 'account_created'))); ?>
                                                
											</div>
                                            
											<div class="UsersRank" style="background-color: #F4F4F4; border: 1px solid #F4F4F4; border-radius: 5px; padding: 10px 10px 10px 10px; float: left; margin-left: 10px; margin-top: 10px; width: 138px;">
                                            
												<b><?php echo $lang['me_user_info_rank']; ?>:</b>
                                                
												<br>
                                                
												<?php echo $core->EscapeString($users->UserInfo($username, 'rank')); ?>
                                                
											</div>		
                                            		
											<div class="UsersTags" style="background-color: #F4F4F4; border: 1px solid #F4F4F4; border-radius: 5px; padding: 10px 10px 10px 10px; float: left; margin-top: 10px; width: 415px;">
                                            
												<b><?php echo $lang['me_user_info_tags']; ?>:</b>
                                                
												<br>
                                                
												<?php
													$tags = mysql_query("SELECT * FROM user_tags WHERE user_id = '".$users->UserID($username)."'");
													
														if(mysql_num_rows($tags) == 0)
														
															{
																
																echo $lang['user_no_tags'].'';
																
															}
															
														while($tag= mysql_fetch_array($tags))echo '| '.$tag['tag'].' |';
												?>
                                                
											</div>
                                            
										</table>
                                        
									</div>
                                    
								</div>
                                
								<div class="l_boxBottom"></div>
                                
								<div style="margin-top: 10px;" class="l_boxHeader_orange">
                                
									<div class="titel">
                                    
										<?php echo $lang['profile_badges']; ?>
                                        
                                    </div>
                                    
								</div>
                                
								<div class="contentBox">
                                
									<div class="boxContent"  id="change_color">
                                    
										<div class="BadgeBox">
                                        
											<table width="100%">
                                            
												<div style="max-height:180px;overflow:scroll;overflow-y:scroll;overflow-x:hidden;">
                                                
													<?php
														$userbadges = mysql_query("SELECT * FROM user_badges WHERE user_id = '".$core->EscapeString($users->UserInfo($username, 'id'))."' ORDER BY badge_id");
														
														if(mysql_num_rows($userbadges) == 0)
														
															{
																
																echo '<b><center>'.$lang['no_badges'].'</center></b>';
																
															}
															
														$color = 'odd';
														
														while($userbadge = mysql_fetch_array($userbadges))
														
															{
													?>
                                                        
													<div class="campaigncontainer" style="width: 70px;height: 50px;float: left;" id="<?php echo $color ?>">
                                                            
														<center>
                                                            
															<img src="Public/Images/badges/<?php echo $userbadge['badge_id']; ?>.gif" onmouseover="tooltip.show('<?php echo $lang['badge_name_is']; ?>: <b><?php echo $userbadge['badge_id']; ?></b>');" onmouseout="tooltip.hide();"/>
                                                                
														</center>
                                                        
                                                    </div>
                                                    
												<?php
												if($color == 'odd')
												
												$color='even';
												
												else
												
												$color='odd';
												
												}
												?>
                                                
												</div>
                                                
											</table>
                                            
										</div>
                                        
									</div>
                                    
								</div>
                                
								<div class="l_boxBottom"></div>
                                
								<style type="text/css">
									#gastenboek {
										width: 100%;
										padding: 5px 5px 5px 5px;
									}

									#gastenboek_bericht {
										border: 1px solid white;
										background-color: #F4F4F4;
										color: <?php echo $core->EscapeString($users->UserInfo($username, 'profiel_tekst_color')); ?>;
										padding: 10px;
										border-radius: 8px;
										-webkit-border-radius: 8px;
										-moz-border-radius: 8px;
										width: 325px;
										float: right;
										margin-right: 15px;
									}
									</style>
                                    
									<?php
										$gastenboek = mysql_query("SELECT * FROM gastenboek WHERE for_user = '".$username."' ORDER BY posted_on DESC ");
										$messages = mysql_num_rows($gastenboek);
										$color = 'odd';
									?>
                                    
									<div style="margin-top: 10px;" class="l_boxHeader_blue">
                                    
										<div class="titel">
                                        
											<?php echo $lang['profile_guestbook']; ?> (<?php echo $messages; ?>)
                                            
										</div>
                                        
										<div class="GuestbookButton"  onclick="openDiv(&#39;tool_container&#39;).style.display = &#39;none&#39;;" onmouseover="tooltip.show('<?php echo $lang['add_new_guestbook_message']; ?>');" onmouseout="tooltip.hide();"></div>
                                        
									</div>
                                    
									<div class="contentBox">
                                    
										<div class="boxContent2" id="change_color">
                                        
											<div style="max-height:280px;overflow:scroll;overflow-y:scroll;overflow-x:hidden;">
                                            
												<?php
													if(mysql_num_rows($gastenboek) == 0){
														
														echo '<div id="gastenboek" style="text-align: center;"><b>Er zijn hier nog geen gastenboek berichten geplaatst.</b></div>';
														
													}while($berichten = mysql_fetch_array($gastenboek)){
												?>
                                                
													<div id="gastenboek"> 
                                                    
														<table width="100%">
                                                        
															<div id="gastenboek_bericht" style="border-color: #F4F4F4;">  
                                                            
																<font style="font-size:10px; color:#999;">
                                                                
																	<a href="home.php?u=<?php echo $berichten['poster']; ?>" style="color:#999;">
                                                                    
																		<?php echo $berichten['poster']; ?>
                                                                        
																	</a> 
                                                                    
																	<?php echo $lang['sayd_on']; ?> <?php echo @date("d-m-Y", $berichten['posted_on']); ?> <?php echo $lang['me_user_info_last_online_on']; ?> <?php echo @date("H:i", $berichten['posted_on']); ?>: 
                                                                    
																</font> 
                                                                
																<br /> 
                                                                
																<br /> 
                                                                 
																<?php echo stripslashes(html_entity_decode($core->EscapeString($berichten['bericht']))); ?>
                                                                
															</div>
                                                            
															<div style="float: left;">
                                                            
																<style type="text/css">
																#poster_avatar {
																	height: 75px;
																	width: 64px;
																	float: left;
																	margin-top: -16px;
																}
																</style>
                                                                
																<a href="home.php?u=<?php echo $berichten['poster']; ?>">
                                                                
																	<div id="poster_avatar" style="background-image: url(http://www.habbo.com/habbo-imaging/avatarimage?figure=<?php echo $berichten['poster_look']; ?>&action=wav&gesture=sml);" onmouseover="tooltip.show('<b><?php echo $berichten['poster']; ?></b><br><?php echo $lang['overlow_guestbook_user_image']; ?>');" onmouseout="tooltip.hide();"></div>
                                                                    
																</a>
                                                                
															</div>
                                                            
														</table>
                                                        
													</div>
                                                    
													<?php
														if($color == 'odd')
														
														$color='even';
														
														else
														
														$color='odd';
														
														}
													?>
                                                    
												</div>
                                                
											</div>
                                            
										</div>
                                        
										<div class="l_boxBottom"></div>
                                        
                                        <div style="height: 70px;margin-top:1px;"></div>
                                        
									</div>
                                    
									<div style="width: 300px; float: left;" class="column" id="column2">
                                    
										<?php if(strtolower($username) == strtolower($_SESSION['username'])){?>
                                        
											<div style="margin-top: 0px;" class="m_boxHeader_lightblue">
                                            
												<div class="titel">
                                                
													<?php echo $lang['profile_add_tags']; ?>
                                                    
												</div>
                                                
											</div>
                                            
											<div class="contentBox" style="border-left-color: #B7B7B7;">
                                            
												<div class="boxContent" id="change_color">
                                                
													<table width="100%">
                                                    
														<?php
														$tags = mysql_query("SELECT * FROM user_tags WHERE user_id = '".$users->UserID($username)."' ORDER BY id DESC");
														
														while($tag= mysql_fetch_array($tags))
														
															echo '
															
																	<div style="background-color: #F4F4F4; border: 1px solid #F4F4F4; border-radius: 5px; padding: 5px 5px 5px 5px; float: left; margin-right: 5px; margin-top: 5px;">
																	
																		'.$tag['tag'].'
																		
																		<a href="functions/removetag.php?id='.$tag['id'].'">
																		
																			<div class="TagButton"></div>
																			
																		</a>
																		 
																		||
																		
																	</div>
																	
																';
																
														?>
                                                        
													</table>
                                                    
													<table width="100%">
                                                    
														<form name="Tag" action="functions/addtag.php" method="post">
                                                        
															<input style="width: 185px; float: left;" type="text" name="tag" id="tag"  />
                                                            
															<input style="float: left;" type="submit" name="submitcomment" value="<?php echo $lang['submit']; ?>" />
                                                            
														</form>
                                                        
													</table>
                                                    
												</div>
                                                
											</div>
                                            
											<div class="m_boxBottom2" style="margin-bottom: 10px;"></div>
                                            
										<?php }?>
                                        
										<div class="m_boxHeader_green">
                                        
											<div class="titel">
                                            
												<?php echo $lang['profile_rooms']; ?>
                                                
											</div>
                                            
										</div>
                                        
										<div class="contentBox" style="border-left-color: #B7B7B7;" id="change_color">
                                        
											<div style="max-height:180px;overflow:scroll;overflow-y:scroll;overflow-x:hidden;">
                                            
												<?php
												$userrooms = mysql_query("SELECT * FROM rooms WHERE owner = '".$username."'");
												
												$color = 'odd';
												
												if(mysql_num_rows($userrooms) == 0){
													
													echo '<div class="RoomBox" id="even"><b>'.$lang['no_rooms'].'</b></div>';
													
												}while($userroom = mysql_fetch_array($userrooms)){
												?>
                                                
													<div  class="RoomBox" id="<?php echo $color; ?>">
                                                    
														<b><?php echo $userroom['caption']; ?></b>
                                                        
														<br />
                                                        
														<br />
                                                        
														<?php echo $lang['room_visitors']; ?>: <?php echo $userroom['users_now']; ?> ~ <?php echo $lang['room_rating']; ?>: <?php echo $userroom['score']; ?>
                                                        
													</div>
                                                    
												<?php
													if($color == 'odd')
													
														$color='even';
														
													else
													
														$color='odd';
														
												}
												?>
                                                
											</div>
                                            
										</div>
                                        
										<div class="m_boxBottom2"></div>
                                        
										<div class="m_boxHeader_lightblue">
                                        
											<div class="titel">
                                            
												<?php echo $lang['profile_information']; ?>
                                                
											</div>
                                            
										</div>
										<div class="contentBox" style="border-left-color: #B7B7B7;">
                                        
											<div class="boxContent" id="change_color">
                                            
												<?php
												$userinfos = mysql_query("SELECT * FROM user_stats WHERE id = '".$core->EscapeString($users->UserInfo($username, 'id'))."'");
												
												while($userinfo = mysql_fetch_array($userinfos))
												
												{
												?>
                                                
													<table width="100%">
                                                    
														<tr>
                                                        
															<td>
                                                            
																<b><?php echo $core->EscapeString($users->UserInfo($username, 'username')); ?></b>
                                                                
															</td>
                                                            
														</tr>
                                                        
														<tr>
                                                        
															<td>
                                                            
																<?php echo $lang['profile_information_has_already']; ?> <b><?php echo $userinfo['RoomVisits']; ?></b> <?php echo $lang['profile_information_roomvisit']; ?>.
                                                                
															</td>
                                                            
														</tr>
                                                        
														<tr>
                                                        
															<td>
                                                            
																<?php echo $lang['profile_information_achievement']; ?> <b><?php echo $userinfo['AchievementScore']; ?></b>.
                                                                
															</td>
                                                            
														</tr>
                                                        
														<tr>
                                                        
															<td>
                                                            
																<?php echo $lang['profile_information_has_already']; ?> <b><?php echo $userinfo['RespectGiven']; ?></b> <?php echo $lang['profile_information_respect_givin']; ?>.
                                                                
															</td>
                                                            
														</tr>
                                                        
														<tr>
                                                        
															<td>
                                                            
																<?php echo $lang['profile_information_has_already']; ?> <b><?php echo $userinfo['Respect']; ?></b> <?php echo $lang['profile_information_respect']; ?>.
                                                                
															</td>
                                                            
														</tr>
                                                        
														<tr>
                                                        
															<td>
                                                            
																<?php echo $lang['profile_information_has_already']; ?> <b><?php echo $userinfo['GiftsGiven']; ?></b> <?php echo $lang['profile_information_present_givin']; ?>.
                                                                
															</td>
                                                            
														</tr>
                                                        
														<tr>
                                                        
															<td>
                                                            
																<?php echo $lang['profile_information_has_already']; ?> <b><?php echo $userinfo['GiftsReceived']; ?></b> <?php echo $lang['profile_information_present']; ?>.
                                                                
															</td>
                                                            
														</tr>
                                                        
														<?php 
														}
														
														$userinfos = mysql_query("SELECT * FROM user_info WHERE user_id = '".$core->EscapeString($users->UserInfo($username, 'id'))."'");
														
														while($userinfo = mysql_fetch_array($userinfos)){
														?>
                                                        
															<tr>
                                                            
																<td>
                                                                
																	is al <b><?php echo $userinfo['bans']; ?></b> keer verbannen.
                                                                    
																</td>
                                                                
															</tr>
                                                            
															<tr>
                                                            
																<td></td>
                                                                
                                                       	 </tr>
                                                         
														<?php } ?>
                                                        
													</table>
                                                    
												</div>
                                                
											</div>
                                            
											<div class="m_boxBottom2"></div>
                                            
                                            <?php if($core->EscapeString($users->UserInfo($username, 'twitter')) == NULL){ ?>
                                            
                                            <?php }else{ ?>
                                            
											<div style="margin-top: 10px;" class="m_boxHeader_green">
                                            
												<div class="titel">
                                                
													<?php echo $lang['folow_twitter']; ?>
                                                    
												</div>
                                                
											</div>
                                            
											<div class="m_contentBox">
                                            
												<div class="boxContent">
                                                    
													<style type="text/css">
													#twitterfeed-habblet-content .twtr-avatar, #twitterfeed-habblet-content .twtr-user { 
														display: none; 
													} 

													#twitterfeed-habblet-content .twtr-tweet-text { 
														margin-left: 0; 
													}
													</style>
                                                    
													<script>
														new TWTR.Widget({
														  version: 2,
														  type: 'profile',
														  rpp: 10,
														  interval: 30000,
														  width: 'auto',
														  height: 150,
														  theme: {
														shell: {
														  background: '#4A4D4F',
														  color: 'white',
														},
														tweets: {
														  background: 'white',
														  color: '#4A4D4F',
														  links: '#FE6301'
														}
														  },
														  features: {
														scrollbar: true,
														loop: false,
														live: false,
														behavior: 'all'
														  }
														}).render().setUser('<?php echo $core->EscapeString($users->UserInfo($username, 'twitter')); ?>').start();
													</script>
                                                    
												</div>
                                                
											</div>
                                            
											<div class="m_boxBottom2"></div>
                                            
                                            <?php } ?>
                                            
                                            <div style="height: 70px;margin-top:1px;"></div>
                                            
										</div>
                                        
									</div>
                                    
								</div>
                                
								<div style="margin-top:-10px;margin-bottom:10px;" class="xxxl_boxBottom"></div>
                                
								<center style="margin: 10px 10px 10px 10px;">
                                
									<?php include("system/footer.php"); ?>
                                    
								</center>
                                
								<?php
								
								}else{
									
								?>
								<div class="column" id="column1">
                                
									<div class="l_boxHeader_red">
                                    
										<div class="titel">
                                        
											Home niet gevonden!
                                            
										</div>
                                        
									</div>
                                    
									<div class="contentBox">
                                    
										<div class="boxContent">
                                        
											<table width="100%">
                                            
												<img align="right" src="Public/Styles/Default/Images/skelet.gif" />
                                                
												Deze home bestaat niet. Dus deze gebruiker bestaat dan ook niet. Excuses voor het ongemak.
                                                
											</table>
                                            
										</div>
                                        
									</div>
                                    
									<div class="l_boxBottom"></div>
                                    
								</div>
                                
								<?php include("system/news_widget.php");}}?>
                                
							</div>
                            
                        </div>
                        
                    </div>
                    
                </div>
                
            </div>
            
        </div>
        
    </div>
    
</div>

<?php include("functions/page_post_guestbook_message.php"); ?>

</body> 
</html>